package sms

type SendSmsCodeReq struct {
	TenantId string `json:"tenant_id" comment:"租户id"`
	Phone    string `json:"phone" comment:"手机号" validate:"required"`
	Action   string `json:"action" comment:"操作类型" validate:"required"`
	Template string `json:"template" comment:"模板类型 CAPTCHA:验证码  GROUP：群发模版 CUSTOM：普通模版" validate:"required"`
}

type CheckSmsCodeReq struct {
	TenantId string `json:"tenant_id" comment:"租户id"`
	Phone    string `json:"phone" comment:"手机号" validate:"required"`
	Action   string `json:"action" comment:"操作类型" validate:"required"`
	Code     string `json:"code" comment:"验证码" validate:"required"`
}

type SendEmailCodeReq struct {
	TenantId string `json:"tenant_id" comment:"租户id" validate:"required"`
	Email    string `json:"email" comment:"邮箱" validate:"required"`
}

type CheckEmailCodeReq struct {
	TenantId string `json:"tenant_id" comment:"租户id" validate:"required"`
	Email    string `json:"email" comment:"邮箱" validate:"required"`
	Code     string `json:"code" comment:"验证码" validate:"required"`
}
